
<!--map上加click事件，点击地图图层之外时也向中间移动-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Center Move</title>
    <link rel="stylesheet" href="/javascripts/arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css">
    <link rel="stylesheet" href="/javascripts/arcgis_js_api/library/3.16/3.16/esri/css/esri.css">
    <style>
        html, body, #map{
            padding:0;
            margin: 0;
            height:100%;
            width: 100%;
        }
        #map{
            position: relative;
        }

    </style>

    <script src="/javascripts/arcgis_js_api/library/3.16/3.16/init.js"></script>
    <script src="index.js"></script>
</head>
<body>
<div id="map"></div>
</body>
</html>